#include "WebPageSearcher.h"
#include <iostream>
using namespace std;

WebPageSearcher::WebPageSearcher(string &sougth, const TcpConnectionPtr &conn, WebPageQuery &query)
: _sought(sougth), _conn(conn), _query(query){

}

WebPageSearcher::~WebPageSearcher(){

}

void WebPageSearcher::doQuery(){
    string msg = _query.doQuery(_sought);
    _conn->sendInLoop(msg, 2);
    cout << "结束查询\n";
}


